package com.hyfrogx.modules.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hyfrogx.modules.sign.entity.IntegralConfig;

import java.util.List;

/**
 * @version 1.0.0
 * @Author: lfh
 * @Date: 2019/10/23 9:44
 * @Company 汉咏科技
 */
public interface IntegralConfigService extends IService<IntegralConfig> {

    /**
     * 获取当前定价
     * @return List<IntegralConfig>
     * @throws Exception
     */
    IntegralConfig getConfig(IntegralConfig config) throws  Exception;

    /**
     * 根据积分来源类型获取定价
     * @param type
     * @return IntegralConfig
     * @throws Exception
     */
    Integer getObjectByType(Integer type);

    /**
     * @param meetPricesList
     */
    void updateGrade(List<IntegralConfig> meetPricesList)throws Exception;

    /**
     * @return
     */
    List<IntegralConfig> getSignIconList() ;
}
